@echo off

set QTSTARTER=C:\Qt\Tools\QtCreator\bin\qtcreator

if "%ACTION%" == "stop" exit/b

if not exist %BUILDDIR% ( 
    echo build dir: %BUILDDIR%
    echo not exists: abort operation
    exit/b 
)


if "%ACTION%" == "launch" (
    %QTSTARTER% %SOURCE_DIRECTORY%CMakeLists.txt
) ELSE (
    cd %BUILDDIR% 
    if "%ACTION%" == "build" mingw32-make
    cd ..
)


exit /b
